package com.shrct.businessprocess.customerservice.impl;

import com.shrct.businessprocess.customerservice.RCFaultReportProduct;
import com.shrct.businessprocess.customerservice.RCFaultReportProductDAO;
import com.shrct.businessprocess.product.RCIdentifiablePhysicalProductEntry;
import edu.fudan.mylang.pf.BaseDAOService;
import edu.fudan.mylang.pf.IGenericQuery;
import java.util.Collection;
import org.springframework.stereotype.Service;

@Service("com.shrct.businessprocess.customerservice.RCFaultReportProductDAO")
public class RCFaultReportProductDAOImpl extends BaseDAOService<RCFaultReportProduct> implements RCFaultReportProductDAO {
  public Collection<RCFaultReportProduct> loadAllFaultReports(final RCIdentifiablePhysicalProductEntry product) {
    IGenericQuery<RCFaultReportProduct> query=getObjectFactory().createGenericQuery(RCFaultReportProduct.class,"select e from com.shrct.businessprocess.customerservice.impl.RCFaultReportProductImpl as e   where ((e.product) = (:product)) and  e.active = 1      ").setParameter("product",product);
    Collection<RCFaultReportProduct> _list = query.list();
    return _list;
  }
}
